package vcp.app.utils;

import java.awt.Dimension;
import java.awt.Toolkit;

public class ScreenUtils {
	public static Dimension getScreenSize(){
		return Toolkit.getDefaultToolkit().getScreenSize();
	}
	public static double getScreenWidth(){
		return Toolkit.getDefaultToolkit().getScreenSize().getWidth();
	}
	public static double getScreenHeight(){
		return Toolkit.getDefaultToolkit().getScreenSize().getHeight();
	}
	
	public static int getDynWidth(int percents){
		if(percents > 0)
		  return (int)(getScreenWidth() / 100)*percents;
		return 0;
	}	
	public static int getDynHeight(int percents){
		if(percents > 0)
		  return (int)(getScreenHeight() / 100)*percents;
		return 0;
	}
}
